﻿using BigBank.Contracts.Logging.V1.Messages;
using BigBank.Contracts.Logging.V1.Models;

namespace BigBank.Contracts.Logging.V1
{
    namespace Clients
    {
        partial class LoggingServiceClient
        {
            public void Debug(string message)
            {
                Service.LogMessage(new LogMessageRequest
                                       {
                                           LogLevel = LogLevel.Debug,
                                           Message = message
                                       });
            }

            public void Info(string message)
            {
                Service.LogMessage(new LogMessageRequest
                                       {
                                           LogLevel = LogLevel.Info,
                                           Message = message
                                       });
            }

            public void Error(string message)
            {
                Service.LogMessage(new LogMessageRequest
                                       {
                                           LogLevel = LogLevel.Error,
                                           Message = message
                                       });
            }
        }
    }
}